package com.iflytek.jobs.service.service.impl;

import java.util.List;

import com.iflytek.jobs.service.domain.ResumeDelivery;
import com.iflytek.jobs.service.mapper.ResumeDeliveryMapper;
import com.iflytek.jobs.service.service.IResumeDeliveryService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 简历指导指派Service业务层处理
 * 
 * @author chenhs
 * @date 2025-08-18
 */
@Service
public class ResumeDeliveryServiceImpl implements IResumeDeliveryService 
{
    @Autowired
    private ResumeDeliveryMapper bisResumeDeliveryMapper;

    /**
     * 查询简历指导指派
     * 
     * @param redId 简历指导指派主键
     * @return 简历指导指派
     */
    @Override
    public ResumeDelivery selectResumeDeliveryByRedId(Long redId)
    {
        return bisResumeDeliveryMapper.selectResumeDeliveryByRedId(redId);
    }

    /**
     * 查询简历指导指派列表
     * 
     * @param bisResumeDelivery 简历指导指派
     * @return 简历指导指派
     */
    @Override
    public List<ResumeDelivery> selectResumeDeliveryList(ResumeDelivery bisResumeDelivery)
    {
        return bisResumeDeliveryMapper.selectResumeDeliveryList(bisResumeDelivery);
    }

    /**
     * 新增简历指导指派
     * 
     * @param bisResumeDelivery 简历指导指派
     * @return 结果
     */
    @Override
    public int insertResumeDelivery(ResumeDelivery bisResumeDelivery)
    {
        bisResumeDelivery.setCreateTime(DateUtils.getNowDate());
        return bisResumeDeliveryMapper.insertResumeDelivery(bisResumeDelivery);
    }

    /**
     * 修改简历指导指派
     * 
     * @param bisResumeDelivery 简历指导指派
     * @return 结果
     */
    @Override
    public int updateResumeDelivery(ResumeDelivery bisResumeDelivery)
    {
        bisResumeDelivery.setUpdateTime(DateUtils.getNowDate());
        return bisResumeDeliveryMapper.updateResumeDelivery(bisResumeDelivery);
    }

    /**
     * 批量删除简历指导指派
     * 
     * @param redIds 需要删除的简历指导指派主键
     * @return 结果
     */
    @Override
    public int deleteResumeDeliveryByRedIds(Long[] redIds)
    {
        return bisResumeDeliveryMapper.deleteResumeDeliveryByRedIds(redIds);
    }

    /**
     * 删除简历指导指派信息
     * 
     * @param redId 简历指导指派主键
     * @return 结果
     */
    @Override
    public int deleteResumeDeliveryByRedId(Long redId)
    {
        return bisResumeDeliveryMapper.deleteResumeDeliveryByRedId(redId);
    }
}
